<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%><%@ include file="pub/top.jsp"%>
<%@ page import="java.util.List,java.util.Map,hyl.core.db.MyDB,hyl.core.MyFun"%>
<!-- 全局变量 函数定义区 -->
<%!%>
<!-- 实例变量 函数定义区 -->
<%
	int role = tk.getRoleid();
	String juese = MyFun.obj2Str(tk.tag.get("juese"));
	
	//网页title
	String JSPTITLE = "首页";
%>
<%@ include file="pub/head2.jsp"%>
<!-- 样式添加区 -->
<link rel="stylesheet" href="<%=basePath%>DataTables/datatables.min.css">
<style>
.sydiv {
	height: 90px;
	text-align: center;
	float: left;
	width: 200px;
	margin-right: 15px;
	margin-bottom: 5px;
	margin-top: 10px;
	border: 1px;
	border-style: solid;
	border-color: #cccccc;
	background: #ffffff;
	padding-top: 11px
}

.sydiv h2 {
	margin-bottom: 0px;
	font-size: 26px
}

.sydiv small {
	margin-top: 20px;
	font-size: 16px
}

.profile-info-name{
text-align:left
}
</style>
<!-- 下右内容区 -->
<div class="main-content-inner">
	<div class="col-xs-12">

		<div class="btn-group col-xs-12"id="zhuyebg">

		</div>
		<div class="row">
			<div class="col-xs-12 col-sm-9">
			<h4 class="blue">
				<span class="middle"><%=tk.get别名() %></span>
			</h4>
			
			<div class="profile-user-info">
				
				<div class="profile-info-row">
					<div class="profile-info-name" > 姓名: </div>

					<div class="profile-info-value">
						<span><%=tk.get别名()%></span>
					</div>
				</div>
				
				<div class="profile-info-row">
					<div class="profile-info-name"> ID: </div>

					<div class="profile-info-value">
						<span><%=tk.getUname()%></span>
					</div>
					&nbsp
					<div class="profile-info-name"> 状态: </div>

					<div class="profile-info-value">
						<span style="color:red">正常</span>
					</div>
					
				</div>
				
				
				<div class="profile-info-row">
					<div class="profile-info-name"> 身份证: </div>

					<div class="profile-info-value">
						<span><%=MyFun.obj2Str(tk.tag.get("code"))%></span>
					</div>
					&nbsp
					<div class="profile-info-name"> 移动电话: </div>

					<div class="profile-info-value">
						<span><%=tk.getPhone()%></span>
					</div>
				</div>
				
				<div class="profile-info-row">
					<div class="profile-info-name"> 区域: </div>

					<div class="profile-info-value">
						<span id="quyu"></span>
					</div>
					&nbsp
					<div class="profile-info-name"> 投诉热线: </div>

					<div class="profile-info-value">
						<span></span>
					</div>
				</div>
				
				
				<div class="profile-info-row">
					<div class="profile-info-name"> 官网:</div>

					<div class="profile-info-value">
						<span></span>
					</div>
					&nbsp
					<div class="profile-info-name"> 公司名称: </div>

					<div class="profile-info-value">
						<span></span>
					</div>
				</div>
				
				
			
				<div class="profile-info-row">
					<div class="profile-info-name"> </div>

					<div class="profile-info-value">
						<span></span>
					</div>
					&nbsp
					<div class="profile-info-name"></div>

					<div class="profile-info-value">
						<span></span>
					</div>
				</div>

				<div class="profile-info-row">
				
			</div>
			</div>
		</div>
		</div>
		
		<%if((role&M2.ROLE_管理员)==role){ %>
		<div class="row">
			<div class="col-sm-6">
				<h4 class="header blue">更新日志</h4>

				<div class="widget-box widget-color-green">

					<div class="widget-body" style="height:300px;overflow-y:scroll">
						<%=My.getUpdateFile() %>
					</div>
				</div>
			</div>
			
		</div>
		<%} %>
		<!-- PAGE CONTENT ENDS -->
	</div>
	
	
</div>
<!--}  footer -->
<a href="#" id="btn-scroll-up"
	class="btn-scroll-up btn btn-sm btn-inverse"> <i
	class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
</a>
<%@ include file="pub/bottom.jsp"%>
<!-- 引入组件库 -->
<script src="<%=basePath%>DataTables/datatables.min.js"></script>
<script src="<%=basePath%>js/hyl.page.js"></script>
<script src="<%=basePath%>js/hyl-city.js"></script>
<!-- 自定义脚本 加载区 -->
<script>
$(document).ready(function() {
	
});

function detail(id){
	window.open("<%=basePath%>s/data/directboad?id="+id);
}

<%-- function showiframe(){
	var html = '<iframe src="member-geren.jsp" style="width:50%;height:450px" frameborder="no"></iframe>';
	if(<%=role%>==1){
		html=html+'<iframe src="member-gonsi.jsp" style="width:50%;height:450px" frameborder="no"></iframe>';
	}
	$('#iframehtml').html(html);
} --%>

//获得留言和广告
function getlyb(){
	var html1 = "";
	var html2 = "";
	$.ajax({
		type : 'get',
		url : '<%=basePath%>s/data/getcommons',
		data : {'xxx' : 0},
		success : function(data) {
		var map = JSON.parse(data);
		var list1 = map.com;
		for(var i in list1){
			html1=html1+'<div class="profile-activity clearfix"><div>'
			+'<a class="user" href="#"> '+list1[i].ualias+' </a>发布了留言,标题为: '
			+'<a href="javascript:void" onclick="detail('+list1[i].id+')">'+(list1[i].title==null?'无':list1[i].title)+'</a>'
			+'<div class="time"><i class="ace-icon fa fa-clock-o bigger-110"></i> '+fmtDate(list1[i].ctime)+' </div></div></div>';
		}
		$('#newboard').html(html1);
		
		var list2 = map.board;
		for(var i in list2){
			html2=html2+'<div class="profile-activity clearfix"><div>'
			+'<a class="user" href="#"> '+list2[i].ualias+' </a>发布了广告,标题为: '
			+'<a href="#">'+list2[i].title+'</a>'
			+'<div class="time"><i class="ace-icon fa fa-clock-o bigger-110"></i> '+fmtDate(list2[i].etime)+' </div></div></div>';
		}
		$('#newlist').html(html2);
		//style="width:150px"   bigger-170
		var mp = map.main;
		var html3 = '<div class="center   ">'
			/* +'<span class="btn btn-app btn-sm btn-light no-hover  width-20">'
			+'<span class="line-height-1  width-80 "> '+abs(mp.l8)+' </span>'
			+'<br>'
			+'<span class="line-height-1  width-45">CAD </span>'
			+'</span>&nbsp&nbsp'
			+'<span class="btn btn-app btn-sm btn-grey no-hover  width-20"  >'
			+'<span class="line-height-1  width-85  "> '+abs(mp.l0)+' </span>'
			+'<br>'
			+'<span class="line-height-1 width-45 "> 奖金累计</span>'
			+'</span>&nbsp&nbsp'
			+'<span class="btn btn-app btn-sm btn-light no-hover  width-20 "  >'
			+'<span class="line-height-1 width-85 "> '+abs(mp.l4)+' </span>'
			+'<br>'
			+'<span class="line-height-1  width-45"> 冻结资产   </span>'
			+'</span>&nbsp&nbsp'  */
			+'</div>';
		$('#zhuyebg').html(html3);
		
		}
	});
}

</script>
